const state = {
    film: {},
    filmAds: {}
}
const actions = {
    saveFilm: ({ commit }, payload) => {
        commit('SAVEFILM', payload)
    },
    clearFilm: ({ commit }) => {
        commit('CLEARFILM')
    },
    saveFilmAds: ({ commit }, payload) => {
        commit('SAVEFILMADS', payload)
    },
    clearFilmAds: ({ commit }) => {
        commit('CLEARFILMADS')
    }
}
const mutations = {
    SAVEFILM: (state, payload) => {
        state.film = payload
    },
    CLEARFILM: (state) => {
        state.film = {}
    },
    SAVEFILMADS: (state, payload) => {
        state.filmAds = payload
    },
    CLEARFILMADS: (state) => {
        state.filmAds = {}
    }
}
export default {
    state,
    actions,
    mutations
}